<template>
  <div>
    <AdminNavbar :userName="id"></AdminNavbar>
    <el-row>
      <el-col :span="4">
        <el-menu

          router :default-active="$route.path"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item route index="/admin-work-info">信息管理</el-menu-item>
          <el-menu-item route index="/add-work-info">发布信息</el-menu-item>
          <el-menu-item route index="3">其他</el-menu-item>
        </el-menu></el-col
      >
      <el-col :span="20"><router-view></router-view></el-col>
    </el-row>
  </div>
</template>

<script>
import AdminNavbar from "components/backEnd/AdminNavbar";
import AdminMenu from "components/backEnd/AdminMenu";
import AdminWorkInfo from "components/backEnd/AdminWorkInfoManage";
export default {
  name: "AdminIndex",
  data() {
    return {
      id: ""
    };
  },
  components: { AdminWorkInfo, AdminMenu, AdminNavbar },
  mounted() {
    this.id =localStorage.getItem('id')
  },
  methods: {}
};
</script>

<style scoped></style>
